<template>
  <div id="app">
    <router-view> </router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
  mounted() {
    // 解决从外部拖拽，导致G6的画布被拖拽起来的问题
    document.addEventListener('dragstart', event => {
      event.preventDefault()
    })

    document.addEventListener('drag', event => {
      event.preventDefault()
    })

    document.addEventListener('drop', event => {
      event.preventDefault()
    })
  }
}
</script>

<style lang="scss">
* {
  padding: 0px;
  margin: 0px;
}
#app {
  width: 100%;
  height: 100%;
}
</style>
